package beans;

//~--- non-JDK imports --------------------------------------------------------

import dto.Topics;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

//~--- JDK imports ------------------------------------------------------------

import java.util.Vector;

import javax.servlet.http.HttpServletRequest;

public class Search extends org.apache.struts.action.ActionForm {
    private String search;
    Vector<Topics> topics;

//  ==========================================================
    public Search() {
        System.out.println("Welcome Constructor");
    }

//  =============================================
    public Vector<Topics> getTopics() {
        System.out.println("wowww");

        return topics;
    }

    public void setTopics(Vector<Topics> topics) {
        System.out.println("dddddddddddddddddddddddd");
        this.topics = topics;
    }

    // ============================================
    public String getSearch() {
        System.out.println("Search is get " + search);

        return search;
    }

    public void setSearch(String search) {
        this.search = search;
        System.out.println("Search is set " + search);
    }

    public void reset(ActionMapping actionMapping, HttpServletRequest request) {
        System.out.println("I am inside Search Bean");
    }

    public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest request) {
        return null;
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
